package com.graduation.mybatis.mapper;

import com.graduation.mybatis.bean.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 23726
* @description 针对表【user】的数据库操作Mapper
* @createDate 2025-03-30 17:25:36
* @Entity com.graduation.mybatis.bean.User
*/
public interface UserMapper extends BaseMapper<User> {
    User selectUserByOpenId(@Param("openId") String openId);
    /**
     * 根据ID更新用户信息
     * @param user 用户实体
     * @return 影响的行数
     */
    boolean updateUserById(User user);
}




